package com.Final.hj;

import java.util.List;

public class MusicList {

    private String result;
    private int code;
    private List<Data> data;

    //内部类 必须使用static修饰
    public static class Data{

        public String id;
        public String name;
        public String singer;
        public String pic;//图片
        public String lrc;//歌词
        public String url;//地址
        public String time;//歌曲时间长度

        public Data(String id, String name, String singer,
                    String pic, String lrc, String url, String time) {//歌词就是播放的时间 毫秒数
            this.id = id;
            this.name = name;
            this.singer = singer;
            this.pic = pic;
            this.lrc = lrc;
            this.url = url;
            this.time = time;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getSinger() {
            return singer;
        }

        public void setSinger(String singer) {
            this.singer = singer;
        }

        public String getPic() {
            return pic;
        }

        public void setPic(String pic) {
            this.pic = pic;
        }

        public String getLrc() {
            return lrc;
        }

        public void setLrc(String lrc) {
            this.lrc = lrc;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<Data> getData() {
        return data;
    }

    public void setData(List<Data> data) {
        this.data = data;
    }
}
